<?php
/**
 * Created by PhpStorm.
 * User: lyon
 * Date: 16-12-15
 * Time: 下午3:19
 */

/**————————————————————————
 * Class RedisMaker
 *
 **————————————————————————
 */
class RedisMaker {
    private static $instance;
    public static function getInstance()
    {
        if (null === self::$instance) {
            self::$instance = new Redis();
            self::$instance->connect('127.0.0.1', 6379);
        }
        return self::$instance;
    }
    protected function __construct()
    {

    }
    private function __clone()
    {
        // TODO: Implement __clone() method.
    }
    private function __wakeup()
    {
        // TODO: Implement __wakeup() method.
    }
}